
import 'package:floor/floor.dart';
import 'package:myapp/app/data/entities/user_model.dart';

@dao
abstract class UserDao {

  @Query("SELECT * FROM User")
  Future<User?> getUser();

  @Insert(onConflict: OnConflictStrategy.replace)
  Future<void> insertUser(User user);
  
  @Query("DELETE FROM User")
  Future<void> clear();

}